package com.misyi.designpattern.factory.simplefactory;

/**
 * 没有使用工厂模式
 *
 * @author licong
 * @date 2021-09-11 上午10:36
 */
public class WithoutFactoryPatternDemo {


    public static void main(String[] args) {
        Product product = new ProductServiceImpl1();
        product.execute();
    }



    public interface Product {
        void execute();
    }


    public static class ProductServiceImpl1 implements Product {
        @Override
        public void execute() {
            System.out.println("产品 1 的功能实现");
        }
    }



}
